#ifndef STARTWIDGET_H
#define STARTWIDGET_H

#include <QDialog>
#include "Camera.h"

class CVModule;

namespace Ui {
class StartWidget;
}

class StartWidget : public QDialog
{
    Q_OBJECT

public:
    explicit StartWidget(QWidget *parent = nullptr);
    ~StartWidget();

private:
    Ui::StartWidget *ui;

signals:
    void signalBeginReboot(void);       //开始重启测试
    void signalEndReboot(void);         //停止重启测试

public:
    int RemainRebootTimes;  //剩余测试次数
    bool useCamera;
    Camera* camera;
    QString settingsFilePath;

public:
    /*Get member value API*/
    QStringList get_strWaitFor1();
    QStringList get_strWaitFor2();
    QString get_savingPath();
    QString get_userName();
    QString get_passWord();
    QString get_keyWord();
    int get_rebootTimes();

public slots:
    void on_pushButton_begin_clicked(); //点击begin
    void on_pushButton_end_clicked();   //点击end
    void slot_setRemainNum();           //设置剩余次数
    void on_checkBox_cameraEnable_clicked();

private slots:
    void on_pushButton_cameraSetting_clicked();
    void on_pushButton_save_clicked();
    void on_pushButton_clicked();
};


#endif // STARTWIDGET_H
